* Fixed debugging code left in (mustBePosted disabled).
wfProfileOut('api.php');
wfLogProfilingData();
+// Shut down the database
+wfGetLBFactory()->shutdown();
+
return wfMemcKey( 'apilogin', 'badlogin', 'ip', wfGetIP() );
}
- //public function mustBePosted() { return true; }
+ public function mustBePosted() { return true; }
public function getAllowedParams() {
return array (
/**
* Schedule a database commit
+ * @deprecated
*/
- public function scheduleCommit() {
- $this->mCommit = true;
- }
+ public function scheduleCommit() {}
/**
* Execute api request. Any errors will be handled if the API was called by the remote client.
$this->executeAction();
else
$this->executeActionWithErrorHandling();
- if($this->mCommit)
- {
- $dbw = wfGetDb(DB_MASTER);
- $dbw->immediateCommit();
- }
+
$this->profileOut();
}